//
//  ILGBaseModel.h
//  ILGDemo
//
//  Created by HappyWork on 2018/11/8.
//  Copyright © 2018 Happy. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ILGBaseModel : NSObject

@property (nonatomic, strong, readonly) NSDictionary *undefinedDict;
@property (nonatomic, copy) NSString *className;

+ (instancetype)modelWithDictionary:(NSDictionary *)dict;

/**
 将字典中的number字段值转化成string

 @return 需要被转化的values对应的keys
 */
- (NSArray *)keysForNumberValueNeedingTanslateToString;

/**
 使用新key替换旧的key

 @return @{@"oldKey":@"newKey"}
 */
- (NSDictionary *)keysForReplacingOldKeys;

@end


@interface ILGBaseModel (ILGOthers)

// 打印成员变量名称和类型
+ (void)printIvarNamesAndTypes;

@end

NS_ASSUME_NONNULL_END
